<template>
  <div>
    <a-button @click="toDataPageClick">进入大屏</a-button>
  </div>
</template>

<script>
import { defineComponent, onMounted } from 'vue';
export default defineComponent({
  name: 'Home',
});
</script>
<script setup>
import { useUserStore } from '@/store';
import { useRouter } from 'vue-router';
const userStore = useUserStore();
const router = useRouter();

const toDataPageClick = () => {
  router.push({
    path: '/largeDataScreen',
  });
};

onMounted(() => {
  console.log(userStore.userInfo);
});
</script>

<style lang="scss" scoped></style>
